import sys
from cx_Freeze import setup, Executable

options = {
    "build_exe": {
        "packages": ["sys"],
        "includes": ['PySide6.QtCore','PySide6.QtGui','PySide6.QtWidgets','PySide6.QtSvgWidgets'] # 包含所有PySide6模块
    }
}

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

executables = [
    Executable("main.py", base=base) # 主程序入口文件
]

setup(name="HydrRefuelMonitor_V2", version="2.1", description="CCT-P-H1", options=options, executables=executables)